#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# @Time : 2021/4/1 21:01 
# @Author : wenzi
# @File : case.py 
# @Software: PyCharm
from apiRestful.extensions import db


class Cases(db.Model):
    __tablename__ = 'cases'
    __table_args__ = {"extend_existing": True, 'mysql_collate': 'utf8_general_ci'}
    id = db.Column(db.Integer, primary_key=True)
    caseName = db.Column(db.String(128), unique=True, index=True)
    caseType = db.Column(db.String(16), unique=False)
    remark = db.Column(db.String(128), unique=False)
    caseData = db.Column(db.String(256), unique=False, index=True)

    def __repr__(self):
        return f"<Case {self.caseName}>"
